package cn.iocoder.yudao.module.resource.controller.admin.message.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;

import java.util.*;

import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 对话分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MessagePageReqVO extends PageParam {
    @Schema(description = "用户id")
    @ExcelProperty("用户id")
    private Long userId;

    @Schema(description = "会话id", example = "17101")
    private String wsSessionId;

    @Schema(description = "对局id")
    private String gameMatchId;

    @Schema(description = "日志追踪id")
    @ExcelProperty("日志追踪id")
    private String traceId;

    @Schema(description = "消息来源", example = "2")
    private Integer senderType;

    @Schema(description = "消息类型")
    private Integer contentType;

    @Schema(description = "用户消息")
    private String userText;

    @Schema(description = "回复消息")
    private String replyText;

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}